#ifndef __MESSAGE_HANDLE_H_
#define __MESSAGE_HANDLE_H_
#include<iostream>
#include<string>
#include<unordered_map>
#include<functional>
#include"musicServer.h"

class MessageHandle
{
public:
    using HandleFunction=std::function<void(const std::string&)>;
    /*构造函数*/
    MessageHandle(void *arg);
public:
    void hanldeMessage(const std::string&data);

private:
    std::unordered_map<int,HandleFunction> m_hanleds;

    /*音乐服务器*/
    musicServer m_musicServer;

};












#endif